{% extends 'barManagerBase.html' %}
{% block content %}
<div data-role="header" data-position="fixed" > 
  <h1>Admin:  {{ bar.name }}</h1> 
</div> 
<div data-role="content" id="content">

  Welcome {{ user.username }}
  <br/><br/><br/>
  <div id="home-bars-listview">
    <ul data-role="listview" data-theme="c">
    {% for deal in deals %}
      {% if deal.status == 2 %}
       <li data-icon="check" >
         <a onClick="openDialog({{ deal.id }}, '{{ deal.user }}');">
         {{ deal.usedDate }} - <b>{{ deal.user }}</b> - En cours
        </a>
       </li>
       {% else %} {% if deal.status == 3 %}
        <li data-icon="false">
          <a>
            <b>{{ deal.user }}</b> - Validé
          </a>
       </li>
       {% endif %}{% endif %}
     {% endfor %} 
    </ul>
  </div>
  <script type="text/javascript">
    
  </script>
</div>

{% include 'barManager/footer.html' %}

{% endblock %}
